package com.qingcloud.common.operatelog.core.annotations;

import com.qingcloud.common.operatelog.core.enums.OperateTypeEnum;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 操作日志注解
 */
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface OperateLog {
    String module() default "";
    String name() default "";
    OperateTypeEnum[] type() default {};
    boolean enable() default true;
    boolean logArgs() default true;
    boolean logResultData() default true;
}
